import { Component } from "react";
import { useParams, useLocation, useNavigate } from "react-router-dom"
function withRouter(Component) {
    return (props) => (
        <Component
            {...props}
            params={useParams()}
            location={useLocation()}
            navigate={useNavigate()}
        />
    );
}
class Tabbars extends Component {
    render() {
        console.log(this.props);
        return (
        <div>
          1111
        </div>)
    }
}
export default withRouter(Tabbars)